package tk.zater;

public class PrimitiveValidationer {
	public boolean Validation(int v1, int v2) {
		RandomGenerator RG = new RandomGenerator(v1, v2);
		byte arr[] = new byte[Math.max(v1, v2) + 3];//int count =0;
		while (RG.hasNext()) {
			//count++;
			arr[RG.next()]++;

		}
		//System.out.println(count);
		for (int i = 1; i < arr.length; i++) {
			if (arr[(int) (i)] >= 2) {
				return false;
			}
		}
		return true;
	}
}
